﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucNewsBottom.ascx.cs" Inherits="TTMarketing.UserControl.ucNewsBottom" %>
<asp:ObjectDataSource ID="odsNewBottom" runat="server" SelectMethod="getTopByType" 
    TypeName="TTBusiness.ClassDB.clsBSNews">
    <SelectParameters>
        <asp:Parameter DefaultValue="6" Name="type" Type="Int32" />
        <asp:Parameter DefaultValue="3" Name="top" Type="Int32" />
    </SelectParameters>
</asp:ObjectDataSource>
<asp:DataList ID="DataList1" runat="server" DataSourceID="odsNewBottom" 
    RepeatColumns="1" Width="100%">
    <ItemTemplate>
        <a href='<%# "/tin-tuc.aspx?id="+Eval("ID") %>'><asp:Image ID="Image1" runat="server" AlternateText='<%# Eval("Title") %>' 
            Height="85px" ImageUrl='<%# "~/Image/Upload/" +Eval("Image") %>' ToolTip='<%# Eval("Title") %>' 
            Width="100px" /></a>
        
        <div style="float:left; padding:3px; margin:0px; font-size:12px">
             <span style="font-size:12px; font-weight:normal; color:#999;">   <%# Eval("Title") %></span></div>
        
        <br />
        <br />
    </ItemTemplate>
</asp:DataList>

